package com.learn.dubbo;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

/**
 * @auther liuhw
 * @date 2019/11/20 09:40
 * @description:
 * @since 1.0
 **/
@Service(interfaceClass = IDemoService.class, version = "1.0.0")
@Component
public class DemoService implements IDemoService {
    private static final String helloFormatter = "Hello %s (from spring boot)";

    @Override
    public String sayHello(String name) {
        return String.format(helloFormatter, name);
    }
}
